package com.cls.business.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cls.common.entity.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
/**
 * 拨付资金表 Entity
 *
 * @author slx
 * @date 2020-11-20 09:33:12
 */
@Data
@TableName("biz_allotment_capital")
public class AllotmentCapital extends BaseEntity implements Serializable {



    /**
     * 
     */
    @TableId(value = "allotment_capital_id", type = IdType.AUTO)
    private Long allotmentCapitalId;



    /**
     * 课题id
     */
    @TableField("declare_id")
    private Long declareId;

    /**
     * 课题名称
     */
    @TableField(exist = false)
    private String declareName;

    /**
     * 课题类型code
     */
    @TableField(exist = false)
    private String declareTypeCode;

    /**
     * 课题类型名称
     */
    @TableField(exist = false)
    private String declareTypeName;

    /**
     * 选题id
     */
    @TableField("topic_id")
    private Long topicId;
    /**
     * 选题名称
     */
    @TableField(exist = false)
    private String topicName;

    /**
     * 主持人
     */
    @TableField("host_people")
    private String hostPeople;


    /**
     * 拨付时间
     */
    @TableField("allotment_time")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date allotmentTime;


    /**
     * 拨付金额
     */
    @TableField("allotment_money")
    private Double allotmentMoney;



    /**
     * 本次拨付钱累计拨付金额
     */
    @TableField("cumulative_money")
    private Double cumulativeMoney;



    /**
     * 总金额
     */
    @TableField("total_money")
    private Double totalMoney;



    /**
     * 拨付金额单位
     */
    @TableField("allocation_unit_name")
    private String allocationUnitName;


    /**
     * 是否发布
     */
    @TableField("is_publish")
    private Boolean isPublish;



}
